Don't make description longer than allowed when truncating
authorJonas Bernoulli <jonas@bernoul.li>
Thu, 4 Aug 2022 12:05:15 +0000 (14:05 +0200)
committerJonas Bernoulli <jonas@bernoul.li>
Thu, 4 Aug 2022 12:05:15 +0000 (14:05 +0200)
commit08d57febc4bcebc6d228c215e363a589498894da
tree121e9dd48d43215ad05edc611ac9602c3ec445e1
parent783d6954bcea18c94d7eee723286f820fbd8b4b2
Don't make description longer than allowed when truncating

Truncating the description to the allowed maximal length and then
appending an ellipsis, makes the final text longer than allowed.
The length of the ellipsis has to be taken into account.
which-key.el